{extend name="common:code" /}
{block name="script"}
<script>
$(function(){
	window.setInterval(function(){
		$.post(
			"{:url('/get_order_status')}",
			{
				out_trade_no:"{$trade_no}"
			},
			function(d){
				if(d=='pay_suc'){
					alert('付款成功');					
					
					$("#upay{$order_id}",window.parent.document).html('<span class="green">已付款</span>'); 				
					parent.window.art.dialog.list['apply'].close();
					
				}
			}
		);
	}, 2000); 
});	
</script>
{/block}